<?php

$user = "andreas";
$pass = "larsson";

setcookie("user", $user);
setcookie("pass", $pass);

echo $_COOKIE["user"];
echo $_COOKIE["pass"];